<extend name="Public:public"/>

<block name="content">
<div class="lm1" style="position:fixed; top:0; z-index:99999;"> 
  <a href="{:U('Goods/goods_pagelist')}">
   <img src="__PUBLIC__/Mobile/images/classification-classification.png" style="width:35px; height:35px;"></a> 
  <form method="post" action="{:U('Index/goods_search')}" onsubmit="return check();">
    <div class="search" style="width:57%; position:relative; top:3px;">
		<input name="title" type="text" id="title" style="font-size:18px; line-height:18px;">
		<button type="submit" style="float: right; background: #ffffff; border: none; outline: none">
    <img src="__PUBLIC__/Mobile/images/search.png" style="width:25px; height:25px;"></button>
	</div>
  </form>
  <if condition="$findone eq ''">
       <a href="{:U('User/login')}" style="width:15%; font-size:18px;">登 录</a>
  <else />
       <a href="{:U('Mycenter/person_center')}" style="width:15%; font-size:14px;">会员</a> 
  </if>

</div>
<div style="height:48px;"></div>
<section>
<!--首页-->
<div class="banner slide mySide" id="myCarousel">



	<div id="home_slider" class="carousel-inner">
	        <ul class="slides" id="slides">
		        <foreach name="banner" item="vv">
		      		<li style="display:none;" id="slides_li"><div class="slide"><a href="{$vv.ad_link}"><img width='100%';" height="260" id="img1" src="{$vv.pic_url}"></a></div></li>
		    	</foreach>
	        </ul>
   </div>
</div>
  
<div class="vice">
	<a  href="{:U('Index/index')}" class="hover">首页</a>
	<foreach name="nav_data" key='key' item="value">
  		<a  href="{:U('getGoods', array('class_id' => $value['id']))}" class="hover">{$value.class_name}</a>
  	</foreach>
</div>



<div class="Classification">
   <foreach name="result_class" key="key" item="value">
   		<if condition="!empty($value)">
	    <div class="Classification_first">
	        <div class="Classification_first_on">
	            <div class="Classification_first_on_img">
	                <a href="{:U('getGoods', array('class_id'=> $value['id']))}"><img src="{$value.pic_url}" alt="" width="50" height="32"/></a>
	            </div>
	            <div class="Classification_first_on_two">
	              <a href="{:U('getGoods', array('class_id'=> $value['id']))}">{$value.class_name}</a>
	            </div>
	        </div>
	    </div>
	    </if>
    </foreach>
</div>

  <div class="advertising" style="margin-top:3%;">
   <a href="{$center.ad_link}"><img src="{$center.pic_url}" width="720" height="220"></a>
  </div>

  <div class="List">
    <h3><span class="left">热销商品</span></h3>

<foreach name="mobile_home_ad" item="vo_home_ad">
  <div style="float:left; width:50%; height:120px;">
    <a href="{$vo_home_ad.ad_link}" sss="{$vo_home_ad['id']}">
      <img style="float:left; width:100%; height:120px;" src="{$vo_home_ad.pic_url}">
    </a>
    <div style="clear:both;"></div>
  </div>
</foreach>
  </div>



<foreach name="class_page" item="vo_class">
	<if condition="!empty($vo_class['pic_url'])">
	  <div class="advertising">
	   <a href="{:U('Goods/goods_goodslist')}?class_id={$vo_class.id}&name={$vo_class.class_name}">
	   	<img src="{$vo_class.pic_url}">
	   </a>
	  </div>
	</if>
</foreach>




</section>

<script type="text/javascript">
	$(function () {
		$('#home_slider').flexslider({
			animation : 'slide',
			controlNav : true,
			directionNav : true,
			animationLoop : true,
			slideshow : false,
			useCSS : false
		});
	});
</script> 
</block>

